﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserWrap.ascx.cs" Inherits="Controls_FrontEnd_UserWrap" %>
<div class="clearfix" id="userwrap">
    <div id="hightlight">
        <div class="moduletable">
            <div class="jvtitleflash">
                <div class="titleflash-pagination" id="paginate-jvtitleflash">
                    <ul>
                        <li><span class="title">HOT NEWS</span></li>
                        <li><a class="prev" href="#">&nbsp;</a></li>
                        <li><a class="next" href="#">&nbsp;</a></li>
                    </ul>
                </div>
                <div class="sliderwrapper" id="jvtitleflash">
                    <%=GetNews() %>
                </div>
            </div>
            <script type="text/javascript">
                /* &lt;![CDATA[ */
                window.addEvent('domready', function () {
                    featuredcontentslider.init({
                        id: "jvtitleflash",  //id of main slider DIV
                        contentsource: ["inline", ""],  //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
                        toc: "markup",  //Valid values: "#increment", "markup", ["label1", "label2", etc]
                        nextprev: ["Previous", "Next"],  //labels for "prev" and "next" links. Set to "" to hide.
                        revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
                        enablefade: [true, 0.1],  //[true/false, fadedegree]
                        autorotate: [true, 5000],  //[true/false, pausetime]
                        onChange: function (previndex, curindex) {  //event handler fired whenever script changes slide
                            //previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
                            //curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
                        }
                    });
                });
                /* ]]&gt; */

            </script>
        </div>
    </div>
    <div id="user4">
        <div class="moduletable-nomargin">
            <div class="search">
                <input type="text" value="" size="20" class="inputbox" alt="Search" maxlength="100"
                    id="mod_search_searchword" name="searchword"><input type="submit"  onclick="SearchKey();"
                        class="button" value="Search">
            </div>
        </div>
    </div>
</div>
<script language="javascript" type="text/javascript">
    SearchKey = function () {
        var value = Trim($control('mod_search_searchword').value);
        value = Trim(value).length > 0 ? value : 'All';
        var url = '<%=Business.Config.ApplicationUrl %>search.html?keyword=' + value;
        window.location = url;
    }
</script>